package com.mall.b2c.bean;

import com.mall.b2c.domain.goods.GoodsDomain;
import com.mall.b2c.domain.member.StockNoticeDomain;
import com.mall.common.util.BeanUtils;

public class StockNoticeBean {

	private Long id;
	private Boolean isNotice; // 是否已通知
	private String noticeDate; // 通知时间
	private String memo; // 留言
	private Integer num; //预定数量
	private Long goodsId;//商品id
	private String goodsCode; //商品编号
	private String  goodsName; // 商品
	private Integer stock;//库存
	private String spec;// 规格
	private String manufacturer;// 生产厂商
	
	public StockNoticeBean() {
	}
	
	public StockNoticeBean(StockNoticeDomain notice) {
		BeanUtils.copyProperties(notice, this);
		GoodsDomain goods = notice.getGoods();
		if(goods != null){
			setGoodsCode(goods.getCode());
			setGoodsId(goods.getId());
			setGoodsName(goods.getName());
			setSpec(goods.getSpec());
//			setManufacturer(goods.getManufacturer());
			setStock(goods.getStock());
		}
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Boolean getIsNotice() {
		return isNotice;
	}

	public void setIsNotice(Boolean isNotice) {
		this.isNotice = isNotice;
	}

	public String getNoticeDate() {
		return noticeDate;
	}

	public void setNoticeDate(String noticeDate) {
		this.noticeDate = noticeDate;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}
	
}